package com.yimoo.elearning.vo;

import java.sql.Timestamp;

/**
 * PoptextId entity. @author MyEclipse Persistence Tools
 */

public class PoptextId implements java.io.Serializable {

	// Fields

	private String pops;
	private Videos videos;
	private Userinfo userinfo;
	private Timestamp time;

	// Constructors

	/** default constructor */
	public PoptextId() {
	}

	/** minimal constructor */
	public PoptextId(String pops, Videos videos, Userinfo userinfo) {
		this.pops = pops;
		this.videos = videos;
		this.userinfo = userinfo;
	}

	/** full constructor */
	public PoptextId(String pops, Videos videos, Userinfo userinfo, Timestamp time) {
		this.pops = pops;
		this.videos = videos;
		this.userinfo = userinfo;
		this.time = time;
	}

	// Property accessors

	public String getPops() {
		return this.pops;
	}

	public void setPops(String pops) {
		this.pops = pops;
	}

	public Videos getVideos() {
		return this.videos;
	}

	public void setVideos(Videos videos) {
		this.videos = videos;
	}

	public Userinfo getUserinfo() {
		return this.userinfo;
	}

	public void setUserinfo(Userinfo userinfo) {
		this.userinfo = userinfo;
	}

	public Timestamp getTime() {
		return this.time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PoptextId))
			return false;
		PoptextId castOther = (PoptextId) other;

		return ((this.getPops() == castOther.getPops()) || (this.getPops() != null && castOther.getPops() != null
				&& this.getPops().equals(castOther.getPops())))
				&& ((this.getVideos() == castOther.getVideos()) || (this.getVideos() != null
						&& castOther.getVideos() != null && this.getVideos().equals(castOther.getVideos())))
				&& ((this.getUserinfo() == castOther.getUserinfo()) || (this.getUserinfo() != null
						&& castOther.getUserinfo() != null && this.getUserinfo().equals(castOther.getUserinfo())))
				&& ((this.getTime() == castOther.getTime()) || (this.getTime() != null && castOther.getTime() != null
						&& this.getTime().equals(castOther.getTime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getPops() == null ? 0 : this.getPops().hashCode());
		result = 37 * result + (getVideos() == null ? 0 : this.getVideos().hashCode());
		result = 37 * result + (getUserinfo() == null ? 0 : this.getUserinfo().hashCode());
		result = 37 * result + (getTime() == null ? 0 : this.getTime().hashCode());
		return result;
	}

}